import { http } from "@/utils/http";
import { baseUrlApi, filerEmptyVal } from "../utils";

/** 入库管理列表 */
export const getStockPage = (params?: object) => {
  return http.request<any>("get", baseUrlApi("/purchase/stock/page"), {
    params: filerEmptyVal(params)
  });
};

/** 添加入库 */
export const stockAdd = (data?: object) => {
  return http.request<any>("post", baseUrlApi("/purchase/stock/add"), { data });
};
